package com.uduemc.biso.master.backend.validator;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import javax.validation.Constraint;
import javax.validation.Payload;

import com.uduemc.biso.master.backend.validator.impl.MasterUserUsernameCreateValid;

/**
 * 验证用户民是否存在，如果存在则验证不通过
 * 
 * @author guanyi
 *
 */
@Target({ ElementType.FIELD, ElementType.METHOD })
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy = MasterUserUsernameCreateValid.class)
public @interface MasterUserUsernameCreate {

	String message() default "此用户名已存在";// 错误提示信息

	Class<?>[] groups() default {};// 分组

	Class<? extends Payload>[] payload() default {};// 这个暂时不清楚作用
}
